package Client.Online;

import java.net.URL;

public class ContactEntry {

    private String mContactName;
    private URL mContactIconUrl;
    private boolean mIsOnline;
    private String mStatusText;

    public String getStatusText() {
        return mStatusText;
    }

    public ContactEntry(String contactName, URL urlToContactIcon, String status, boolean isOnline) {
        mContactName = contactName;
        mStatusText = status;
        mContactIconUrl = urlToContactIcon;
        mIsOnline = isOnline;
    }

    public boolean isOnline() {
        return mIsOnline;
    }

    public void setOnlineStatus(boolean mIsOnline) {
        this.mIsOnline = mIsOnline;
    }
    
    public void setStatus(String s){
        this.mStatusText=s;
    }

    public String getContactName() {
        return mContactName;
    }

    @Override
    public String toString() {
        // TODO Auto-generated method stub
        return mContactName;
    }
}
